$("header #navigation a").mouseenter(function() {
	$("header #navigation a").css("border", "2px solid transparent")
	$(this).css({
		border: '2px solid white',
		borderRadius: "10px"
	});
});
$("header #navigation a").mouseleave(function() {
	$("header #navigation a").css("border", "2px solid transparent")
});
$("footer #footerTop").mouseenter(function() {
	$("footer #footerTop img").attr("src", "img/img1/footer0_h.jpg");
});
$("footer #footerTop").mouseleave(function() {
	$("footer #footerTop img").attr("src", "img/img1/footer0.jpg");
});
$("footer #footerCenter img").mouseenter(function() {
	$(this).attr("src", "img/img1/footer" + ($(this).index() + 1) + "_h.jpg");
});
$("footer #footerCenter img").mouseleave(function() {
	$(this).attr("src", "img/img1/footer" + ($(this).index() + 1) + ".jpg")
});
$("#navigationMerge").mouseenter(function() {
	$("#navigationHidden").css({
		display: "block"
	});
});
$("body").mouseleave(function() {
	$("#navigationHidden").css({
		display: "none"
	});
});
$("#navigationHidden a").mouseenter(function() {
	$("#navigationHidden a").css("color", "yellowgreen");
	$(this).css('color', "white");
})
$("#navigationHidden a").mouseleave(function() {
	$("#navigationHidden a").css("color", "yellowgreen");
})
$("#backTop").mouseenter(function() {
	$(this).css("-webkit-animation", " 1s shake")
})
$("#backTop").mouseleave(function() {
	$(this).css("-webkit-animation", " 1s headShake")
})
$("#backTop").click(function() {
	var t = 0;
	var b = 50;
	var c = 900;
	var d = 20;
	function backTop() {
		t++;
		if(t == d) {
			clearInterval(timerBack);
		}
		$("#backTop").css({
			bottom: Tween.Linear(t, b, c, d)
		})
	}
	var timerBack = setInterval(backTop, 30);
	})